export default [
  {
    path: '/',
    component: () => import('@/views/error/building.vue'),
    meta: {
      title: '首页',
      icon: 'home',
    },
  },

  {
    path: '',
    meta: {
      title: '招聘',
      icon: 'recruit',
    },
    children: [
      {
        path: '/recruit/plans/index',
        component: () => import('@/views/recruit/plans/index.vue'),
        meta: {
          title: '招聘计划',
          icon: 'recruit_plan',
        },
      },
      {
        path: '/recruit/interview/index',
        component: () => import('@/views/recruit/interview/index.vue'),
        meta: {
          title: '我的面试',
          icon: 'recruit_plan',
        },
      },
      {
        path: '/recruit/formwork/index',
        component: () => import('@/views/recruit/formwork/index.vue'),
        meta: {
          title: '招聘模板',
          icon: 'recruit_plan',
        },
      },
      {
        path: '/recruit/talentPool/index',
        component: () => import('@/views/recruit/talentPool/index.vue'),
        meta: {
          title: '人才库',
          icon: 'recruit_plan',
        },
      },

      // {
      //   path: '/recruit/talentPool/record',
      //   component: () => import('@/views/recruit/talentPool/record.vue'),
      //   meta: {
      //     title: '面试记录',
      //   },
      // },
    ],
  },

  {
    path: '',
    meta: {
      title: '培训',
      icon: 'train',
    },
    children: [
      {
        path: '/train/courses',
        component: () => import('@/views/train/courses/index.vue'),
        meta: {
          title: '课程库',
          icon: 'course',
        },
      },
      {
        path: '/train/courses/manager',
        component: () => import('@/views/train/courses/manager.vue'),
        meta: {
          title: '课程维护',
          icon: 'course_manager',
        },
      },
    ],
  },

  {
    path: '',
    meta: {
      title: '管理',
      icon: 'manager',
    },
    children: [
      {
        path: '/manager/departments',
        component: () => import('@/views/manager/departments/index.vue'),
        meta: {
          title: '部门',
          icon: 'department',
        },
      },
      {
        path: '/manager/posts',
        component: () => import('@/views/manager/posts/index.vue'),
        meta: {
          title: '岗位',
          icon: 'post',
        },
      },
      {
        path: '/manager/users',
        component: () => import('@/views/manager/users/index.vue'),
        meta: {
          title: '员工',
          icon: 'users',
        },
      },
    ],
  },
]
